import request from '@/utils/request'

// 查询采购订单跟踪表列表
export function listPurorder(query) {
  return request({
    url: '/procurementmanagement/purorder/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单跟踪表详细
export function getPurorder(orderId) {
  return request({
    url: '/procurementmanagement/purorder/' + orderId,
    method: 'get'
  })
}

// 新增采购订单跟踪表
export function addPurorder(data) {
  return request({
    url: '/procurementmanagement/purorder',
    method: 'post',
    data: data
  })
}

// 修改采购订单跟踪表
export function updatePurorder(data) {
  return request({
    url: '/procurementmanagement/purorder',
    method: 'put',
    data: data
  })
}

// 删除采购订单跟踪表
export function delPurorder(orderId) {
  return request({
    url: '/procurementmanagement/purorder/' + orderId,
    method: 'delete'
  })
}
